Create User
AutomatR.AWS.Activities.CreateUser
The "Create User" activity in AutomatR is part of the AWS IAM (Identity and Access Management) activities package, allowing automation processes to create a new IAM user within Amazon Web Services (AWS). This activity streamlines the user creation process, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Access Key ID | Provides the encrypted access key ID for your AWS account, enabling connection to the AWS IAM service. String variables containing the access key ID. |
Secret Access Key | Provides the encrypted secret access key for your AWS account, enabling connection to the AWS IAM service. String variables containing the secret access key. |
Region | Specifies the AWS region where you want to create the new IAM user. Use the RegionEndpoint enumeration to set the region. |
Name | Specifies a unique name for the new IAM user. String variables containing the user name. |
Password | Specifies the desired password for the newly created IAM user. String variables containing the password. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Create User" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Path | Specifies the desired path for the IAM user. If no path is set, it will be assigned the default path. String variables containing the desired path. |
Tags | Specifies the tags that need to be added or updated. It will be stored in the form of a "Dictionary<String,String>" variable. |
Permissions Boundary ARN | Provides the Amazon Resource Name (ARN) of the policy to use as the permissions boundary for the IAM user. |
Force Password Change | Enabling this option requires the user to change their password during their next login. Boolean variables containing the option status. |
Generate AWS Access Keys | Enabling this option allows generating AWS Secret Access Keys ID and AWS Access Key Id for the newly created user. Boolean variables containing the option status. |
Output | |
User | Stores the result in a String variable format that can be used for further processing, giving the User Name for the created user. |
AWS Access Key ID | Stores the result in a String variable format that can be used for further processing in the form of AWS Access Key for the created user. |
AWS Secret Access Key | Stores the result in a String variable format that can be used for further processing in the form of AWS Secret Access Key for the created user. |
How to use:
- Drag and drop the "Create User" activity onto the workflow.
- Configure the properties by providing the required inputs, such as access key ID, secret access key, region, user name, password, and optionally, additional settings.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to create a new IAM user within AWS.
Example: Consider an example where the "Create User" activity is used to create a new IAM user named "JohnDoe" with a specified password and generate AWS access keys:
Create User:
Display Name: "Create JohnDoe User"
Access Key ID: "**************"
Secret Access Key: "**************"
Region: "us-east-1"
Name: "JohnDoe"
Password: "SecurePassword123"
Generate AWS Access Keys: true
User: createdUser
AWS Access Key ID: accessKeyId
AWS Secret Access Key: secretAccessKey
In this example, the activity attempts to create a new IAM user named "JohnDoe" in the "us-east-1" region with the specified password. It also generates AWS access keys, and the results are stored in the variables "createdUser," "accessKeyId," and "secretAccessKey" for further handling in the workflow.